<template>
    <div id="box">
        <h3>
            <i class="iconfont icon-target"></i>
            <slot name="title"></slot>
        </h3>
        <ul>
            <slot name="option"></slot>
        </ul>
        <a href="javascript:;" class="more">更多<i class="iconfont icon-Arrow-Right"></i></a>
    </div>
</template>

<style lang="scss" scoped>
    i {
        color: #C20C0C;
        font-size: 1.5rem;
        line-height: 35px;
    }

    #box {
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        align-items: center;
        height: 35px;
        border-bottom: 2px solid #C20C0C;

        h3 {
            height: 100%;
            padding-left: 10px;
            font-size: 1.5rem;
            font-weight: normal;
            
            span {
                margin-left: 10px;
                cursor: pointer;
            }
        }

        ul {
            display: flex;
            flex-flow: row nowrap;
            justify-content: space-evenly;
            align-items: center;
            height: 100%;
            margin-left: -58%;
            color: #666;

            li {
                position: relative;
                margin-right: 20px;
                cursor: pointer;
                color: #ccc;

                &::after {
                    content: '';
                    display: block;
                    position: absolute;
                    top: 3px;
                    left: -10px;
                    width: 1px;
                    height: 15px;
                    background-color: #999;
                }

                &:first-child::after {
                    display: none;
                }

                &:hover {
                    text-decoration: underline;
                }
            }
        }

        .more {
            display: block;
            position: relative;
            height: 100%;
            padding-right: 20px;
            margin-right: 10px;
            line-height: 33px;

            &:hover {
                text-decoration: underline;
            }

            i {
                position: absolute;
                top: -5px;
                right: -5px;
                padding-top: 5px;
            }
        }
    }
</style>